package com.itshare.video.pojo.bo;

import com.itshare.video.common.core.validator.support.value.EnumValue;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 管理员修改 广告投放地区 和 开始 结束时间
 * @Author lyr
 * @create 2020/11/9 0:27
 */
@Data
public class AdvertisementTimeChangeBO {
    @NotNull(message = "广告id不为空")
    private Integer advertisementId;
    private Date beginTime;
    private Date endTime;

    @EnumValue(mustAllIn = {"1","2"},message = "必须是1,2,1是学生区域，2是教师区域")
    private Integer advertisementPutting;
}
